package com.ruoyi.student_club.vo;

import com.ruoyi.student_club.domain.BaseDomain;
import lombok.Data;

/**
 * @Author lin
 * @Date 2022/1/27 15:36
 */
@Data
public class ClubPictureVo extends BaseDomain {

    private Long posterId;

    private Long clubId;

    private String posterPath;

    public void setPosterPath(String posterPath) {
        if (posterPath != null && posterPath.contains("upload")){
            this.posterPath = posterPath.substring(posterPath.indexOf("upload")-1);
        }
    }
}
